package com.meaningful.thinking.spring.scan_annotations;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableScanMyAnnotations
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);

        // 启动后你可以拿到扫描到的类
        System.out.println("扫描到的类有：" + MyAnnotationRegistrar.getScannedClasses());
    }
}
